<g:if test="${productList.size()>0 }">
  <table>
    <thead>
      <tr>
        <th>进货序号</th>
        <th>产品名称</th>
        <th>型号</th>
        <th>数量</th>
        <th>进价</th>
        <th>零售价</th>
        <th>查看</th>
      </tr>
    </thead>
    <tbody>
      <g:each in="${productList}" status="i" var="product">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
          <td><g:link action="productDetailList" id="${product.number}">${product.number?.encodeAsHTML()}</g:link></td>
          <td>${product.productName?.encodeAsHTML()}</td>
          <td>${product.modelNo?.encodeAsHTML()}</td>
          <td>${product.amount?.encodeAsHTML()}</td>
          <td>${product.inPrice?.encodeAsHTML()}</td>
          <td>${product.outPrice?.encodeAsHTML()}</td>
          <td><g:link action="show" id="${product.id}">查看详情</g:link></td>
        </tr>
      </g:each>
    </tbody>
  </table>
</g:if>
<g:else>
  <p align="center">
    <h>对不起没有相应的查询结果，请重新输入查询条件！</h>
  </p>
</g:else>
<br>